/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javase2203 - Switch2
 * <p>Powered by webrx On 2022-07-13 16:48:08
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Switch2 {
    public static void main(String[] args) {


        var i = color.RED;//short int byte char String(jdk1.7开始支持) enum枚举
        switch(i){
            case BLUE :

                break;
        }
    }
}
//声明枚举对象，相当于一个类
enum color{
    RED,GREEN,BLUE
}
